home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: LaTeX Document
(document/latex).
You can browse this item here: round.tex
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| LaTeX Document (document/latex)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| LaTeX document text
| default
| |
99%
| file
| LaTeX document, ASCII text, with CR line terminators
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/281 LaTeX (Subdocument)
| default
| |
100%
| detectItEasy
| Format: plain text[CR]
| default (weak)
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [ttxt] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 5c 73 65 63 74 69 6f 6e | 7b 72 6f 75 6e 64 20 2d |\section|{round -|
|00000010| 2d 2d 20 52 6f 75 6e 64 | 20 6f 66 66 20 76 61 6c |-- Round| off val|
|00000020| 75 65 7d 0d 5c 6c 61 62 | 65 6c 7b 66 6e 3a 72 6f |ue}.\lab|el{fn:ro|
|00000030| 75 6e 64 7d 0d 5c 69 6e | 64 65 78 7b 72 6f 75 6e |und}.\in|dex{roun|
|00000040| 64 28 29 7d 0d 5c 69 6e | 64 65 78 7b 72 6f 75 6e |d()}.\in|dex{roun|
|00000050| 64 20 6f 66 66 20 76 61 | 6c 75 65 7d 0d 5c 62 65 |d off va|lue}.\be|
|00000060| 67 69 6e 7b 72 61 69 6c | 7d 0d 52 6f 75 6e 64 20 |gin{rail|}.Round |
|00000070| 3a 20 27 72 6f 75 6e 64 | 27 20 27 28 27 20 28 20 |: 'round|' '(' ( |
|00000080| 53 63 61 6c 61 72 20 7c | 20 4d 61 74 72 69 78 20 |Scalar || Matrix |
|00000090| 29 20 27 29 27 20 3b 0d | 5c 65 6e 64 7b 72 61 69 |) ')' ;.|\end{rai|
|000000a0| 6c 7d 0d 0d 5c 76 65 72 | 62 2b 72 6f 75 6e 64 2b |l}..\ver|b+round+|
|000000b0| 20 72 65 74 75 72 6e 73 | 20 74 68 65 20 6e 65 61 | returns| the nea|
|000000c0| 72 65 73 74 20 69 6e 74 | 65 67 65 72 20 76 61 6c |rest int|eger val|
|000000d0| 75 65 20 74 6f 20 74 68 | 65 20 61 72 67 75 6d 65 |ue to th|e argume|
|000000e0| 6e 74 2e 0d 49 66 20 74 | 68 65 20 61 72 67 75 6d |nt..If t|he argum|
|000000f0| 65 6e 74 20 69 73 20 61 | 20 6d 61 74 72 69 78 2c |ent is a| matrix,|
|00000100| 20 74 68 65 20 6f 70 65 | 72 61 74 69 6f 6e 20 69 | the ope|ration i|
|00000110| 73 20 64 6f 6e 65 20 65 | 6c 65 6d 65 6e 74 20 62 |s done e|lement b|
|00000120| 79 0d 65 6c 65 6d 65 6e | 74 2e 0d 0d 54 68 65 20 |y.elemen|t...The |
|00000130| 72 65 74 75 72 6e 65 64 | 20 76 61 6c 75 65 20 69 |returned| value i|
|00000140| 73 20 73 6f 6d 65 77 68 | 61 74 20 64 65 70 65 6e |s somewh|at depen|
|00000150| 64 61 6e 74 20 6f 6e 20 | 74 68 65 20 75 6e 64 65 |dant on |the unde|
|00000160| 72 6c 79 69 6e 67 20 0d | 6d 61 74 68 20 6c 69 62 |rlying .|math lib|
|00000170| 72 61 72 79 20 66 75 6e | 63 74 69 6f 6e 2c 20 74 |rary fun|ction, t|
|00000180| 68 6f 75 67 68 20 69 6e | 20 67 65 6e 65 72 61 6c |hough in| general|
|00000190| 2c 20 69 66 20 74 68 65 | 20 64 69 66 66 65 72 65 |, if the| differe|
|000001a0| 6e 63 65 0d 62 65 74 77 | 65 65 6e 20 74 68 65 20 |nce.betw|een the |
|000001b0| 66 75 6e 63 74 69 6f 6e | 20 61 72 67 75 6d 65 6e |function| argumen|
|000001c0| 74 20 61 6e 64 20 74 68 | 65 20 72 6f 75 6e 64 65 |t and th|e rounde|
|000001d0| 64 20 72 65 73 75 6c 74 | 20 69 73 20 65 78 61 63 |d result| is exac|
|000001e0| 74 6c 79 0d 24 30 2e 35 | 24 2c 20 74 68 65 6e 20 |tly.$0.5|$, then |
|000001f0| 74 68 65 20 72 65 73 75 | 6c 74 20 77 69 6c 6c 20 |the resu|lt will |
|00000200| 62 65 20 72 6f 75 6e 64 | 65 64 20 74 6f 20 74 68 |be round|ed to th|
|00000210| 65 20 6e 65 61 72 65 73 | 74 20 65 76 65 6e 20 69 |e neares|t even i|
|00000220| 6e 74 65 67 65 72 2e 20 | 0d 0d 0d 5c 70 61 72 61 |nteger. |...\para|
|00000230| 67 72 61 70 68 7b 45 78 | 61 6d 70 6c 65 7d 0d 5c |graph{Ex|ample}.\|
|00000240| 69 6e 64 65 78 7b 65 78 | 61 6d 70 6c 65 20 6f 66 |index{ex|ample of|
|00000250| 20 72 6f 75 6e 64 28 29 | 7d 0d 5c 69 6e 64 65 78 | round()|}.\index|
|00000260| 7b 72 6f 75 6e 64 28 29 | 21 65 78 61 6d 70 6c 65 |{round()|!example|
|00000270| 7d 0d 5c 62 65 67 69 6e | 7b 76 65 72 62 61 74 69 |}.\begin|{verbati|
|00000280| 6d 7d 0d 3e 20 72 6f 75 | 6e 64 28 31 2e 30 30 32 |m}.> rou|nd(1.002|
|00000290| 29 0d 20 20 20 20 20 20 | 20 20 31 0d 3e 20 72 6f |). | 1.> ro|
|000002a0| 75 6e 64 28 31 2e 39 39 | 38 29 0d 20 20 20 20 20 |und(1.99|8). |
|000002b0| 20 20 20 32 0d 3e 20 72 | 6f 75 6e 64 28 31 2e 35 | 2.> r|ound(1.5|
|000002c0| 29 0d 20 20 20 20 20 20 | 20 20 32 0d 3e 20 72 6f |). | 2.> ro|
|000002d0| 75 6e 64 28 32 2e 35 29 | 0d 20 20 20 20 20 20 20 |und(2.5)|. |
|000002e0| 20 32 0d 3e 20 62 20 3d | 20 31 30 30 2a 72 61 6e | 2.> b =| 100*ran|
|000002f0| 64 28 32 2c 35 29 0d 20 | 62 20 3d 0d 20 20 20 20 |d(2,5). |b =. |
|00000300| 20 36 35 2e 35 20 20 20 | 20 20 20 20 20 20 39 31 | 65.5 | 91|
|00000310| 20 20 20 20 20 20 20 32 | 39 2e 39 20 20 20 20 20 | 2|9.9 |
|00000320| 20 20 20 20 37 30 20 20 | 20 20 20 20 20 39 2e 31 | 70 | 9.1|
|00000330| 38 20 20 0d 20 20 20 20 | 20 31 32 2e 39 20 20 20 |8 . | 12.9 |
|00000340| 20 20 20 20 31 31 2e 32 | 20 20 20 20 20 20 20 32 | 11.2| 2|
|00000350| 36 2e 35 20 20 20 20 20 | 20 20 20 20 39 35 20 20 |6.5 | 95 |
|00000360| 20 20 20 20 20 39 30 2e | 32 20 20 0d 3e 20 72 6f | 90.|2 .> ro|
|00000370| 75 6e 64 28 62 29 0d 20 | 20 20 20 20 20 20 36 35 |und(b). | 65|
|00000380| 20 20 20 20 20 20 20 20 | 20 39 31 20 20 20 20 20 | | 91 |
|00000390| 20 20 20 20 33 30 20 20 | 20 20 20 20 20 20 20 37 | 30 | 7|
|000003a0| 30 20 20 20 20 20 20 20 | 20 20 20 39 20 20 0d 20 |0 | 9 . |
|000003b0| 20 20 20 20 20 20 31 33 | 20 20 20 20 20 20 20 20 | 13| |
|000003c0| 20 31 31 20 20 20 20 20 | 20 20 20 20 32 37 20 20 | 11 | 27 |
|000003d0| 20 20 20 20 20 20 20 39 | 35 20 20 20 20 20 20 20 | 9|5 |
|000003e0| 20 20 39 30 20 20 0d 3e | 20 63 20 3d 20 31 30 30 | 90 .>| c = 100|
|000003f0| 2a 28 72 61 6e 64 28 32 | 2c 33 29 2b 28 72 61 6e |*(rand(2|,3)+(ran|
|00000400| 64 28 32 2c 33 29 2a 28 | 30 2b 31 6a 29 29 29 0d |d(2,3)*(|0+1j))).|
|00000410| 20 63 20 3d 0d 20 6d 61 | 74 72 69 78 20 63 6f 6c | c =. ma|trix col|
|00000420| 75 6d 6e 73 20 31 20 74 | 68 72 75 20 33 0d 20 20 |umns 1 t|hru 3. |
|00000430| 20 20 20 20 20 20 20 20 | 20 20 20 20 39 36 20 2b | | 96 +|
|00000440| 20 39 30 2e 38 69 20 20 | 20 20 20 20 20 20 20 20 | 90.8i | |
|00000450| 20 20 34 34 2e 31 20 2b | 20 31 34 2e 38 69 20 20 | 44.1 +| 14.8i |
|00000460| 20 20 20 20 20 20 20 20 | 20 39 32 2e 34 20 2b 20 | | 92.4 + |
|00000470| 30 2e 35 34 33 69 0d 20 | 20 20 20 20 20 20 20 20 |0.543i. | |
|00000480| 20 20 20 39 31 2e 35 20 | 2b 20 33 36 2e 32 69 20 | 91.5 |+ 36.2i |
|00000490| 20 20 20 20 20 20 20 20 | 20 20 20 37 2e 33 35 20 | | 7.35 |
|000004a0| 2b 20 38 37 2e 39 69 20 | 20 20 20 20 20 20 20 20 |+ 87.9i | |
|000004b0| 20 20 20 38 2e 38 32 20 | 2b 20 32 32 2e 32 69 0d | 8.82 |+ 22.2i.|
|000004c0| 0d 3e 20 72 6f 75 6e 64 | 28 63 29 0d 20 6d 61 74 |.> round|(c). mat|
|000004d0| 72 69 78 20 63 6f 6c 75 | 6d 6e 73 20 31 20 74 68 |rix colu|mns 1 th|
|000004e0| 72 75 20 33 0d 20 20 20 | 20 20 20 20 20 20 20 20 |ru 3. | |
|000004f0| 20 20 20 20 20 39 36 20 | 2b 20 39 31 69 20 20 20 | 96 |+ 91i |
|00000500| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 34 34 20 | | 44 |
|00000510| 2b 20 31 35 69 20 20 20 | 20 20 20 20 20 20 20 20 |+ 15i | |
|00000520| 20 20 20 20 20 20 39 32 | 20 2b 20 31 69 0d 20 20 | 92| + 1i. |
|00000530| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 39 31 | | 91|
|00000540| 20 2b 20 33 36 69 20 20 | 20 20 20 20 20 20 20 20 | + 36i | |
|00000550| 20 20 20 20 20 20 20 37 | 20 2b 20 38 38 69 20 20 | 7| + 88i |
|00000560| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 39 | | 9|
|00000570| 20 2b 20 32 32 69 0d 5c | 65 6e 64 7b 76 65 72 62 | + 22i.\|end{verb|
|00000580| 61 74 69 6d 7d 0d 0d 53 | 65 65 20 61 6c 73 6f 3a |atim}..S|ee also:|
|00000590| 20 50 61 67 65 7e 5c 70 | 61 67 65 72 65 66 7b 66 | Page~\p|ageref{f|
|000005a0| 6e 3a 63 65 69 6c 7d 20 | 5c 76 65 72 62 2b 63 65 |n:ceil} |\verb+ce|
|000005b0| 69 6c 28 29 2b 2c 0d 50 | 61 67 65 7e 5c 70 61 67 |il()+,.P|age~\pag|
|000005c0| 65 72 65 66 7b 66 6e 3a | 66 6c 6f 6f 72 7d 20 5c |eref{fn:|floor} \|
|000005d0| 76 65 72 62 2b 66 6c 6f | 6f 72 28 29 2b 2c 0d 50 |verb+flo|or()+,.P|
|000005e0| 61 67 65 7e 5c 70 61 67 | 65 72 65 66 7b 66 6e 3a |age~\pag|eref{fn:|
|000005f0| 69 6e 74 7d 20 5c 76 65 | 72 62 2b 69 6e 74 28 29 |int} \ve|rb+int()|
|00000600| 2b 2e 0d 0d 0d 5c 6e 65 | 77 70 61 67 65 0d 0d 0d |+....\ne|wpage...|
|00000610| 0d | |. | |
+--------+-------------------------+-------------------------+--------+--------+